
if (document.getElementById("listDiv"))
{
    document.getElementById("listDiv").onmouseover = function(e)
    {
        obj = getSrcElement(e);

        if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
        else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
        else return;
        
        for (i = 0; i < row.cells.length; i++)
        {
            if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#E4F2FF';
        }
    }

    document.getElementById("listDiv").onmouseout = function(e)
    {
        obj = getSrcElement(e);
        
        if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
        else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
        else return;
        
        for (i = 0; i < row.cells.length; i++)
        {
            if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#FFF';
        }
    }

    document.getElementById("listDiv").onclick = function(e)
    {
        var obj = getSrcElement(e);

        if (obj.tagName == "INPUT" && obj.type == "checkbox")
        {
			if (!document.forms['listForm'])
			{
				return;
			}
            var nodes = document.forms['listForm'].elements;
            var checked = false;

            for (i = 0; i < nodes.length; i++)
            {
                if (nodes[i].checked)
                {
                    checked = true;
                    break;
                }
            }

            document.getElementById("btnSubmit").disabled = !checked;
            for (i = 1; i <= 10; i++)
            {
               if (document.getElementById("btnSubmit" + i))
               {
                   document.getElementById("btnSubmit" + i).disabled = !checked;
               }
            }
        }
    }

}

/**
 *
 */
 function getSrcElement(e)
 {
    if (typeof e == "undefined") e = window.event;
    var src = document.all ? e.srcElement : e.target;	 
	return src;
 }